package org.springonrails.model;

public class Target 
{
	private String name;
	private String[] properties;
	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String[] getProperties() {
		return properties;
	}
	public void setProperties(String[] properties) {
		this.properties = properties;
	}
	
	public String toString()
	{
		StringBuffer buf = new StringBuffer();
		buf.append("<target name=\"").append(name).append("\"");
		buf.append(" properties=\"");
		for(int i=0; i<properties.length; i++)
		{
			buf.append(properties[i]);
			if(i<(properties.length-1)) buf.append(",");
		}		
		buf.append("\"");
		buf.append(">");		
		buf.append("</target>");
		return buf.toString();
	}
	
}
